﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sherwood.SignOn;

namespace Sherwood.SignOn
{    

    public interface IProfileProvider
    {
        void GetRoles(IUserSession session, string requestClientCode, out RoleInfo[] roles, out AttributeInfo[] attributes);

        void GetRoles(IUserAccount userAccount, string requestClientCode, out RoleInfo[] roles, out AttributeInfo[] attributes); 
    }

    public class RoleInfo
    {
        public string Name {get; set;}
        public string Source { get; set; }
    }

    public class AttributeInfo
    {
        public string Name { get; set; }
        public string Value {get; set;}
        public string Source {get; set;}
    }    
}
